﻿// Write a program that reads a year from the console and checks whether it is a leap. Use DateTime.

using System;

public class CheckYearIsLeap
{
    private static void Main()
    {
        ushort year;
        do
        {
            Console.Write("Enter Year: ");
        }
        while (!ushort.TryParse(Console.ReadLine(), out year));

        if (DateTime.IsLeapYear(year))
        {
            Console.WriteLine("Year {0} is Leap.", year);
        }
        else
        {
            Console.WriteLine("Year {0} is NOT Leap.", year);
        }
    }
}